package com.cheng.example.geektime.designpatterns.j56.apply;


/**
 * 发放新的用户体验金
 */
public class RegPromotionObserver implements RegObserver {
    private PromotionService promotionService = new PromotionService();//依赖注入

    @Override
    public void handleRegSuccess(long userId) {
        promotionService.issueNewUserExperienceCash(userId);
    }
}
